
/**
 * Created by LENOVO on 2016/10/9.
 */
$(function () {
    alert("ccc");
    if ($("#email").val() == "" || $("#email").val() == null) {
        alert("邮箱不能为空！");
    }
    var url = "/set/RegularSet.press";
    var data = {};
    data.web_name = $("#web_name").val();
    data.email = $("#email").val();
    data.phone = $("#phone").val();
    data.qq = $("#qq").val();
    data.weibo = $("#weibo").val();
    $("#setRegular").click(function () {
        $.post(url,data,function (result) {
            if(result.msg=="true"){
                alert("修改成功");
            }
        },"json");
    });
}